<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-satisfaction-inpatient-dept" data-options="border:false;width:100%">
  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		
		<p>
			<span class="badge">提示</span>
			在此你可以对<span class="label-info"><strong>住院科室满意度信息</strong></span>进行查询!
		</p>
	</div>
	<div class="condition easyui-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
		<form class="condition-form">
			<table> 	
				<tr>
					<th>科室名称</th>
					<td><input name="evl_org_name" id="evl_org_name" type="text"  class="easyui-textbox easyui-validatebox" style="width:150px"/></td>
					<th>评价时间起始</th>
					<td><input name="evaluate_time_start" id="evaluate_time_start" class="easyui-datebox easyui-validatebox" style="width:150px" data-options="required:true"/></td>
					<th>评价时间截止</th>
					<td><input id="evaluate_time_end" name="evaluate_time_end" class="easyui-datebox easyui-validatebox" style="width:150px"/></td>												
				</tr>
				
			</table>
			<input id="evaluate_type" name="evaluate_type" type="hidden" value="2"/>
		</form>
	</div>
    <div class="tb-list" style="padding:2px 0">
		<table cellpadding="0" cellspacing="0"> 
			<tr>
				<td style="padding-left:2px">
					<input class="searchbox" type="text"/>
				</td>
				<td style="padding-left:2px">
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn"  plain="true" >查询条件</a>
				</td>
				<td style="padding-left:2px">
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn" iconCls="icon-search" plain="true" >执行查询</a>
				</td>
			</tr>
		</table>
	</div>
	<table class="easyui-datagrid dg-list"  
		data-options="rownumbers:true,
		animate: true,							
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		width : 'auto',
		pagination : true">
		
		<thead>						
			<tr>				
				<th field="dept_name" width="60" align="center">科室名称</th>							
				<th field="cnt" width="40" align="center">评价人数</th>
				<th field="fcmy" width="40" align="center"  data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">非常满意</th>
				<th field="my" width="40" align="center"  data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">满意</th>
				<th field="jbmy" width="40" align="center"  data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:green;';							
						}
					}
				">基本满意</th>				
				<th field="bmy" width="40" align="center"  data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:red;';							
						}
					}
				">不满意</th>		
				<th field="fcbmy" width="40" align="center"  data-options="
					styler: function(value,row,index){
						if (value > 0){
							return 'color:red;';							
						}
					}
				">非常不满意</th>
				<th field="myl" width="40" align="center" data-options="
					styler: function(value,row,index){
						if (value){
							if( value <= 70)
							return 'color:red;';
							else
							return 'color:green;';							
						}else
						return null
					},formatter: function(value,row,index){
						if (value > 0){
							return   value.toFixed(2) +'%';							
						}
					}
					
				">满意率</th>
				
															
			</tr>                         
		</thead>
		
	</table>
<script>
requirejs(['listPageModule','inpatientDept','domReady!'],function(dept,inpatientDept,doc){
	dept.init({doc:doc,
		rootId:'panel-satisfaction-inpatient-dept',				
		subSystemCode:'satisfaction',
		moduleCode:'satisEvaluate',
		cellClick:inpatientDept.clickCell,
		rowClick:inpatientDept.clickRow,
		initElement:inpatientDept.initElement,
		querylistUrl:'getInpatientDeptDomain'
	});
});	

</script>

